package com.aoip.telemetry.telemetry.analysis.entity;


import com.aoip.telemetry.telemetry.entity.frame.FrameStructureBaseEntity;
import lombok.*;

/**
 * 水文协议帧结构框架实体类(第一轮解析)
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/6/15 15:40
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class HydrologyFrame extends FrameStructureBaseEntity {
    private static final long serialVersionUID = -9113928990699461840L;

    /**
     * 帧起始符
     **/
    private String frameStartCharacter;
    /**
     * 中心站地址
     **/
    private String centerStationAddress;

    /**
     * 密码
     **/
    private String password;
    /**
     * 功能码
     **/
    private String functionCode;
    /**
     * 报文上下行标识及长度
     **/
    private String upOrDownAndLength;
    /**
     * 报文起始符
     **/
    private String messageBeginCharacter;
    /**
     * 报文正文
     **/
    private String msgBody;
    /**
     * 报文结束符
     **/
    private String messageEndCharacter;
    /**
     * 校验码
     **/
    private String crc;

    /**
     * 协议名称，适配多个子协议情况
     **/
    private String protocolName;

}
